﻿using AiXiu.BLL;
using AiXiu.IBLL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace AiXiu.Web
{
    /// <summary>
    /// 视频删除处理程序
    /// </summary>
    public class VideoDeleteHandler : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            //读取参数videoId
            string videoId = context.Request.QueryString["videoId"];
            //调用BLL层删除视频的方法
            IUserManager userManager = new UserManager();
            userManager.DeleteVideo(videoId);
            //输出
            context.Response.ContentType = "text/plain";
            context.Response.Write("ok");
            context.Response.End();
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}